﻿<phone:PhoneApplicationPage 
    x:Class="AKalinovsky.MapTest.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:AKalinovsky.Map;assembly=AKalinovsky.Map"
    xmlns:local="clr-namespace:AKalinovsky.MapTest"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <my:MapTileLayer x:Name="map" Grid.Row="0" Zoom="10" Center="32 54.8">
            <my:MapTileLayer.TileSource>
                <local:YandexTileSource/>
            </my:MapTileLayer.TileSource>
        </my:MapTileLayer>
        <Grid Grid.Row="1" Background="{StaticResource PhoneBackgroundBrush}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Text="Longitude:" />
            <TextBlock Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" Text="Latitude:" />
            <TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Text="Zoom:" />
            <TextBlock Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Text="Azimuth:" />
            <TextBox x:Name="lon" Text="32.0" Grid.Column="1" Grid.Row="0" />
            <TextBox x:Name="lat" Text="54.8" Grid.Column="3" Grid.Row="0" />
            <TextBox x:Name="zoom" Text="10" Grid.Column="1" Grid.Row="1" />
            <TextBox x:Name="azimuth" Text="0" Grid.Column="3" Grid.Row="1" />
            <Button Grid.Row="2" Grid.ColumnSpan="4" Content="Go to..." Click="Button_Click" />
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>